﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ENT;
using BUS;
using BASE;

public partial class thaydoittcn : System.Web.UI.Page
{
    static string matkhau = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        //check dang nhap
        if (Utils.getStringSession("masv") == "")
        {
            Response.Redirect("/");
        }
        entSinhVien entSV = new entSinhVien();
        busSinhVien busSV = new busSinhVien();
        entSV= busSV.getSinhVienByMaSV(Utils.getStringSession("masv"));
        matkhau = entSV.MatKhau;
    }
    protected void btn_ok_Click(object sender, EventArgs e)
    {
        //check mat khau
        if (Utils.getMD5(txt_pass.Text) != matkhau)
        {
            lb_tb.Text = "Mật khẩu cũ không đúng";
        }
    }
}